#ifndef _SHIP_H_
#define _SHIP_H_

enum {
    EST_NONE,
    EST_SELECTED,
};

typedef struct Ship {
    int x;
    int y;
    int x_offset;
    int y_offset;
    int direction;
    int status;
} Ship;

void InitShip(Ship* ship, int x, int y);
void DrawShip(Ship* ship, int x, int y);
Ship* SelectShip(int x, int y);
int CanMoveShip(Ship* ship, int x, int y);
void NormShipDirection(Ship* ship);
void NormShipOffset(Ship* ship);
int MinRotateDirectin(Ship* ship, int direction);

#endif
